<template>
<div>
    
    <div v-if="this.$store.state.others.arr1.length">lalala</div>
    <div v-else class="img"><img :src="a" ></div>
   
</div>
</template>

<script>

// import from ""
export default {
 data(){
     return {
         a:"../img/othersimg.png"
     }
 },
   
mounted(){
     let usp = new URLSearchParams()
                // usp.append("你发送的key","你发送的val")
                
            usp.append("type","dfk")
    this.$store.dispatch("others",{url:"/dfk",usp})
},methods:{
 
}}

</script>

<style scoped>
.img{
    display: block;
    width: 2rem;
    height: 2rem;
    margin:0.5rem auto;
}
.img>img{
    width: 100%;
    height: 100%;
}

</style>